package com.yangwp.java.spider.weibo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yangwp.java.spider.weibo.dao.ImageDao;
import com.yangwp.java.spider.weibo.model.Image;
import com.yangwp.java.spider.weibo.service.ImageService;

/**
 * @author 11070538
 */
@Service
public class ImageServiceImpl implements ImageService {

    @Autowired
    private ImageDao imageDao;

    @Override
    public boolean insert(Image image){
        return imageDao.insert(image) > 0;
    }

}
